import 'dart:async';
import 'package:bloc/bloc.dart';
import './bloc.dart';
import 'package:drm/http/date_result.dart';
class BaseBloc extends Bloc<Event, State> {
  @override
  State get initialState => InitialBaseState();

  @override
  Stream<State> mapEventToState(
      Event event,
  ) async* {

    if( event is ListHandTotalEvent) {
      yield LoadingState();
      DateResult result = await event.getListHandTotalData() ;
      yield ListHandTotalState(result);

    }

  }
}
